
#ifndef _TYPES_H
#define _TYPES_H

#include "config.h"

typedef struct {
	int num;        		
	int type;  			
	int quantite;   		
	int palettesProduites; 		
	int palettesDispos;		
	int tauxRebut;			
	struct Palette * premierePalette;   
	struct Lot * lotSuivant;     	
} Lot;


typedef __packed__ struct {
	char type;  		
	UINT32 quantite;   
	UINT32 num;        
} MsgOrdreCond;


typedef __packed__ struct {
	UINT32 numCommande;  
	UINT32 quai;         
	UINT32 quantite1;    
	UINT32 quantite2;   
} MsgOrdreExpe;


typedef char MsgOrdreArret;


typedef INT32 MsgOrdreReprise;


typedef struct {
	int num;	
	int numPalette; 
	int nbRebuts;	
	Lot* lot;	

} MsgCarton;


typedef struct {
	int num;	
	Lot * lot;	
} MsgPalette;


typedef struct {
	int num;			
	int emplacement;               
	Lot * lot;			
	struct Palette * paletteSuivante; 
} Palette;

typedef Lot * Entrepot;


typedef struct {
	char name[16];	
	int priority;	
	int options;	
	int stackSize;	
	void* entryPt;	
} TacheInfo;


typedef struct{
	int lenght;				
	char content[TAILLEMSG_BALMESSAGELOG];	
} Trame;


typedef struct{
	MSG_Q_ID * id;	
	int maxMsg;	
	int maxTaille;	
	int options;
} BalInfo;

#endif
